import { ApiProperty } from '@nestjs/swagger';
import { IsOptional, IsString, IsUUID } from 'class-validator';

export class UpdateFileDto {
  @ApiProperty({
    description: '文件描述',
    example: '更新后的产品设计草图',
  })
  @IsString()
  @IsOptional()
  description?: string;

  @ApiProperty({
    description: '关联的任务ID',
    example: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
  })
  @IsUUID()
  @IsOptional()
  taskId?: string;
} 